alter table Contact
add EmailSettingId int null
go
ALTER TABLE [dbo].[Contact]  WITH CHECK ADD  CONSTRAINT [FK_Contact_EmailSetting] FOREIGN KEY([EmailSettingId])
REFERENCES [dbo].[EmailSetting] ([EmailSettingId])
GO
ALTER TABLE [dbo].[Contact] CHECK CONSTRAINT [FK_Contact_EmailSetting]
GO